@(qcm: Qcm)

@import helper._

@main("Recapitulatif"){
@header()	
@helper.form(action = routes.CreateQCM.submit(4)) {
 <div class="actions"> 	
     	<button id="action" type="submit" name="action" value="retour" class="btn btn-primary">
			Retour <i class="icon-white icon-circle-arrow-left"></i> 
		</button>
		
       	<button id="action" type="submit" name="action" value="valider"class="btn btn-primary">
			Valider <i class="icon-white icon-circle-arrow-right"></i>
		</button>
</div>
	<fieldset>
	<div class="bs-docs-example" >
	<div class="bs-docs-example-after" >
		Etape 4 sur 4
		</div>	
	
		<legend>QCM : Information gen&eacute;ral</legend>	
					<div>
					<label>Libell&eacute; : </label>
					<INPUT type="text" name="libelle" value="@qcm.getLibelle" disabled="disabled">
					</div>
					
					<div class="row">
					<div class="span4">
				   <label>Date d'ouverture du Qcm : </label>
				    <INPUT type="text" name="libelle" value="@qcm.getDateOuverture().format("dd/MM/yyyy HH:mm")" disabled="disabled">
				    </div>
				    <div class="span4">
				    <label>Date de cloture du Qcm : </label>
				    <INPUT type="text" name="libelle" value="@qcm.getDateCloture().format("dd/MM/yyyy HH:mm")" disabled="disabled">
 		
				 	</div>
				 	</div>
			</br>	 	
			<legend>Liste des questions</legend>
						<table class="table table-striped sortable">
					
						<thead>
							<tr>
								<th>Libell&eacute </th>
								<th>Niveau de difficult&eacute </th>
							</tr>
							<thead>
							<tbody>
							@for(question <- qcm.getListeQuestions()){
							<tr>
							<td>@question.getLibelleQuestion()</td>
							<td>@question.getNiveauQuestion().getLibelleNiveau() </td>
							</tr>
							}
							</tbody>
						</table>
						
						
			<legend>Notation : </legend>

					<table class="table table-striped sortable">
					
						<thead>
							<tr>
								<th>Niveau</th>
								<th>Point Positif</th>
								<th>Point Negatif</th>
							</tr>
							<thead>
							<tbody>
					@for(niveauQuestion <- qcm.getListeNiveauQuestions()){	
					<tr>			
							<td>@niveauQuestion.getNiveauQuestion().getLibelleNiveau()</td>							
							<td>@niveauQuestion.getPointPositif()</td>
							<td>@niveauQuestion.getPointNegatif()</td>
							</tr>
						}	
					</table>
</div>
</fieldset> 
    
 <div class="actions"> 	
     	<button id="action" type="submit" name="action" value="retour" class="btn btn-primary">
			Retour <i class="icon-white icon-circle-arrow-left"></i> 
		</button>
		
       	<button id="action" type="submit" name="action" value="valider"class="btn btn-primary">
			Valider <i class="icon-white icon-circle-arrow-right"></i>
		</button>
</div>


        
}
}